package inph.account.common;

import java.io.InputStream;
import java.util.Properties;

public class SysEnv {
	private static Properties properties = null;  
	public static Properties getProperties(){
		if(properties==null){
			try{
				properties = new Properties();
				InputStream is = SysEnv.class.getClassLoader().getResourceAsStream("sys.properties");
				properties.load(is);
			}catch (Exception e) {
				e.printStackTrace();
			}
		}
		return properties;
	}
	
	public static String getLoginPagePath(){
		return getProperties().getProperty("loginPagePath");
	}
	
	public static String getLoginPath(){
		return getProperties().getProperty("loginPath");
	}
	
	public static boolean getLoginModule(){
		return getProperties().getProperty("loginModule").equals("true")?true:false;
	}
}
